package View;

import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JComboBox;

import Enums.Periodo;

@SuppressWarnings({ "rawtypes", "unchecked" })
public class ComboBoxPeriodo extends JComboBox
{
	private static final long serialVersionUID = 1L;

	
	public ComboBoxPeriodo()
	{
		ComboBoxModel cbModel = new DefaultComboBoxModel(Periodo.values());
		this.setModel(cbModel);
	}
	
	public Periodo getSelectedItem()
	{
		Object periodo = super.getSelectedItem();
		return (Periodo)periodo;
	}
}
